The function rm.getSystemInfo helps to get the reader system information. This includes Radio Firmware version, FPGA version, Up time, reader name, location, RAM available & Flash memory available.
//
Get Reader System Information
try
{
SystemInfo readerSystemInfo = rm.getSystemInfo();
System.out.println("Reader
Name : " +
readerSystemInfo.getReaderName());
System.out.println("Firmware Version : " +
readerSystemInfo.getRadioFirmwareVersion());
System.out.println("FPGA Version :
" + readerSystemInfo.getFPGAVersion());
System.out.println("RAM Available : "
+ readerSystemInfo.getRAMAvailable() + "bytes");
System.out.println("Flash Available : " +
readerSystemInfo.getFlashAvailable() + "bytes");
System.out.println("Up
Time :
" + readerSystemInfo.getUpTime());
System.out.println("Reader Location : " +
readerSystemInfo.getReaderLocation());
}
catch (OperationFailureException exception) {
System.out.println("GetSystemInfo failed " +
exception.getStatusDescription() + " "
+ exception.getVendorMessage());
}
catch (InvalidUsageException ex) {
}
//
Getting and Setting the Reader Information like name,
description,
//
location and contact information can be done using the property
//
ReaderInfo.
//
Get Reader Info
try
{
ReaderInfo readerInfo = rm.getReaderInfo();
System.out.println("Reader Info");
System.out.println(" Reader
Name :
" + readerInfo.getName());
System.out.println(" Reader Description : "
+ readerInfo.getDescription());
System.out.println(" Reader
Location : " +
readerInfo.getLocation());
System.out.println(" Reader
Contact : " +
readerInfo.getContact());
// Set Reader Info
readerInfo.setContact("Zebra Technologies");
readerInfo.setDescription("API3 Test Reader");
rm.setReaderInfo(readerInfo);
}
catch
(InvalidUsageException ex){
}
catch
(OperationFailureException ex){
}